<?php

namespace app\proxy\controller\employ;

use app\proxy\controller\Controller;
use app\proxy\model\employ\Employ as EmployModel;

class Employ extends Controller
{
    /**
     * 招聘列表
     */
    public function index()
    {
        // 供应商列表
        $model = new EmployModel;
        $list = $model->getList($this->postData(), $this->getRegionIds());
        return $this->renderSuccess('', compact('list'));
    }

    public function handleSubmit($employ_id, $remark)
    {
        $model = new EmployModel;
        $model->where("employ_id",$employ_id)->save(["remark"=>$remark,"status"=>1]);
        return $this->renderSuccess('操作成功');
    }

    public function delete($employ_id)
    {
        $model = new EmployModel;
        $model->where("employ_id",$employ_id)->save(["is_delete"=>1]);
        return $this->renderSuccess('操作成功');
    }


}